<?php 
	echo $html->css ( 'tab' );
	echo $html->css ( 'resumemodels_city' );
	echo $javascript->link ( 'jquery' );
	echo $javascript->link ( 'checkedAll' );
?>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Systemconfigs');//一级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Provinces',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<div class="tabflex">
	<table width="50%" cellspacing="0" cellpadding="0" border="0">
		<tr>
			<td width="100px">
			 <a href="<?php echo ROOT_WEB_PATH; ?>/provinces/add/"><?php echo $html->image('add.gif', 
			 							array('alt' =>  __('Add', true),'title'=>'新增省份','border'=>'0' )); ?>&nbsp;新增省份</a>
			</td><!--  __('Add', true) 新增省份-->
				<td width="100px">
			 <a href="<?php echo ROOT_WEB_PATH; ?>/cities/add/"><?php echo $html->image('add.gif', 
			 							array('alt' =>  __('Add', true),'title'=>'新增城市','border'=>'0' )); ?>&nbsp;新增城市</a>
			</td><!--  __('Set', true) 新增城市-->
			<td width="100px">
			 <a href="<?php echo ROOT_WEB_PATH; ?>/cities/index/"><?php echo $html->image('setting.gif', 
			 							array('alt' =>  __('Set', true),'title'=>'自定义城市','border'=>'0' )); ?>&nbsp;城市列表</a>
			</td><!--  __('Set', true) 自定义城市-->
			<td></td>
					
		</tr>
	</table>

	<div id="nav1" width="100%">
		<table cellpadding="0" cellspacing="0" class="tab1">
		<tr>
			<th width="30px"><?php echo $form->checkbox('',array('id'=>'checkedAll'));?></th>
			<!--<th width="30px"><?php echo $paginator->sort('id');?></th>
			--><!--
			<th><?php //echo $paginator->sort('created');?></th>
			<th><?php //echo $paginator->sort('creater');?></th>
			<th><?php //echo $paginator->sort('updater');?></th>
			<th><?php //echo $paginator->sort('modified');?></th>
			-->
			<th><?php echo $paginator->sort('name');?></th>
			<th><?php echo $paginator->sort('language_id');?></th>
			<th colspan="2" width="80px"><?php __('Actions');?></th>
		</tr>
		<?php
		foreach ($provinces as $province):
		?>
			<tr class=normal onmouseover='this.className= "over " '
					onmouseup='this.className= "over " '
					onmouseout='this.className= "normal " '>
				<td>
	<!-- 批量删除选择 -->				
				<?php echo $form->checkbox($province['Province']['id'], array('value' => $province['Province']['id'],'name'=>'checkbox_name'));?>
				</td><!--		
				<td title="<?php echo $province['Province']['id']; ?>">
					<?php echo $province['Province']['id']; ?>
				</td>
				-->
				<td title="<?php echo $province['Province']['name']; ?>">
					<?php echo $province['Province']['name']; ?>
				</td>
				<td title="<?php echo $province['Language']['name']; ?>">
					<?php echo $province['Language']['name']; ?>
				</td>
				<td>
				<?php echo $html->link( $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0')), '/provinces/delete/' . $province['Province']['id'], null, 
				__('Are you sure you want to delete', true) .' '. $province['Province']['name'] . '?',array('escape'=>false));  ?> 		
				</td><!--  __('delete', true) 删除、提示 -->
				<td>
				<?php echo $html->link( $html->image('edit.gif', array('alt' =>  __('Edit', true),'border'=>'0')), '/provinces/edit/' . $province['Province']['id'], null,null,
				array('escape'=>false));  ?> 	
				</td><!--  __('edit', true) 修改 -->
			</tr>
		<?php endforeach; ?>
		</table>
	</div>
</div>
	<ul  class="paging">
		<li class="paging-p">
		<?php echo $paginator->counter(array('format' => __('页 %page% 共 %pages%, 当前  %current% 条记录，共 %count% 条记录', true)));?>
		</li>
		<li>
		<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
		</li>
		<li class="numberbg">
		 | <?php echo $paginator->numbers();?> 
		 </li>
		<li>
		<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
		</li>
	</ul>

 
